<div class="row searchLineWrap">
	<form id="upcomingForm" name="upcomingForm" action="${cxt!}/upcoming/events/list" method="post" class="form-horizontal">
		<div class="col-md-12">
			<div class="row">
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["upcoming.events.title"]}</label>
						<div class="col-md-9">
							<input type="text" class="form-control" name="upcomingEvents.l_title" placeholder="${_res['upcoming.events.title']}" value="${paramMap['upcomingEvents.l_title']}" style="width:242px"/>
						</div>
					</div>
				</div>
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["upcoming.events.contacter"]}</label>
						<div class="col-md-9">
							<input type="text" class="form-control" name="upcomingEvents.l_contacter" placeholder="${_res['upcoming.events.contacter']}" value="${paramMap['upcomingEvents.l_contacter']}" style="width:242px"/>
						</div>
					</div>
				</div>
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["upcoming.events.mobilecontact"]}</label>
						<div class="col-md-9">
							 <input type="text" class="form-control" name="upcomingEvents.l_mobilecontact" placeholder="${_res['upcoming.events.contacter']}" value="${paramMap['upcomingEvents.l_mobilecontact']}" />
						</div>
					</div>
				</div>
			</div>
			
			<div class="row">
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["upcoming.events.eventdate"]}</label>
						<div class="col-md-9">
							<input class="form-control layer-date laydate-icon" name="upcomingEvents.gt_eventdate" placeholder="${_res['upcoming.events.eventdate']}" value="${paramMap['upcomingEvents.gt_eventdate']}" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" required aria-required="true" />
						</div>
					</div>
				</div>
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["upcoming.events.eventdate"]}</label>
						<div class="col-md-9">
							<input class="form-control layer-date laydate-icon" name="upcomingEvents.lt_eventdate" placeholder="${_res['upcoming.events.eventdate']}" value="${paramMap['upcomingEvents.lt_eventdate']}" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" required aria-required="true" />
						</div>
					</div>
				</div>
				
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["upcoming.events.status"]}</label>
						<div class="col-md-9">
							 <#dict type="select" name="upcomingEvents.f_status"  dictCode="COMMON_STATUS" value="${paramMap['upcomingEvents.f_status']}"/>
						</div>
					</div>
				</div>
				
				<div class="col-md-2">
					<div class="form-group">
						<% if(hasPrivilegeUrl("upcomingList")){ %>
							<button type="button" class="btn btn-primary pull-left" onclick="ajaxForm('content','upcomingForm')">
								<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
							</button> 
						<% } %>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>

<div class="row searchLineWrap">
	<p>
		<a href="javascript:void(0);" onClick="ajaxContent('/admin/toUrl?toUrl=/realty/academyarticle/upcomingEvents/add.html');" class="btn btn-primary pull-left"> ${_res["upcoming.events.addactivities"]} </a>
		<div class="clearfix"></div>
	</p>
	<table class="table table-bordered" id="list-table">
		<thead>
			<tr>
				<th>${_res["upcoming.events.title"]}</th>
				<th>${_res["upcoming.events.contacter"]}</th>
				<th>${_res["upcoming.events.emailcontact"]}</th>
				<th>${_res["upcoming.events.mobilecontact"]}</th>
				<th>${_res["upcoming.events.fromTime"]}</th>
				<th>${_res["upcoming.events.toTime"]}</th>
				<th>${_res["upcoming.events.status"]}</th>
				<th>${_res["upcoming.events.address"]}</th>
				<th>${_res["user.review.processor"]}</th>
			</tr>
		</thead>
		<tbody>
			<% for(upcoming in splitPage.list!){ %>
			<tr>
				<td style="background-color: rgb(255, 255, 255);">${upcoming.title!}</td>
				<td style="background-color: rgb(255, 255, 255);">${upcoming.contacter!}</td>
				<td style="background-color: rgb(255, 255, 255);">${upcoming.emailcontact!}</td>
				<td style="background-color: rgb(255, 255, 255);">${upcoming.mobilecontact!}</td>
				
				<td style="background-color: rgb(255, 255, 255);">${upcoming.fromTime!}</td>
				<td style="background-color: rgb(255, 255, 255);">${upcoming.toTime!}</td>
				<td style="background-color: rgb(255, 255, 255);">
					<#dict type="lable" value="${upcoming.status!}" name="upcoming.status" dictCode="COMMON_STATUS" />
				</td>
				<td style="background-color: rgb(255, 255, 255);">${upcoming.address!}</td>
				<td style="background-color: rgb(255, 255, 255);">
					<% if(hasPrivilegeUrl("toUpdate")){ %>
						<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/upcoming/events/toUpdate/${upcoming.id!}')">
							${_res["system.edit"]}
						</button>
					<% } %>
					<% if(hasPrivilegeUrl("upcomingDelete")){ %>
						<button type="button" class="btn btn-sm btn-link" data-trigger="confirm" onClick="ajaxDelete('/upcoming/events/delete/${upcoming.id!}')">
							${_res["system.delete"]}
						</button>
					<% } %>
					<% if(hasPrivilegeUrl("activityRegistration")){ %>
						<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/upcoming/events/activityRegistration/${upcoming.id!}')">
							${_res["upcoming.events.activityRegistration"]}
						</button>
					<% } %>
				</td>
			</tr>
			<%}%>
		</tbody>
	</table>
	<div id="splitPageDiv"><#page formId="upcomingForm" /></div>
	<#nav />
</div>